import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Vuex from 'vuex'

Vue.use(ElementUI)
Vue.use(Vuex)

Vue.config.productionTip = false

const store = new Vuex.Store({
  state: {
    jsonData: ''
  },
  mutations: {
    setJsonData(state, data) {
      state.jsonData = data
    }
  }
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
